class CustomUClip extends UClip{

  void drawClip(USide s, Vec2D a, Vec2D b, PGraphics pg){
    if(s.neighbor != null && s.sideState == true){
      pg.beginShape();
      pg.vertex(a.x, a.y);

      Vec2D a2 = getRotatedPoint(a, b, -radians(30), 20); // get the 
      pg.vertex(a2.x, a2.y);

      Vec2D b2 = getRotatedPoint(b, a, radians(30), 20);
      pg.vertex(b2.x, b2.y);

      pg.vertex(b.x, b.y);
      pg.endShape();
      
      drawDashedLine(a,b,200,pg);
    }
    else{
      pg.line(a.x,a.y,b.x,b.y);
    }
  }
}




